package cn.edu.zafu.bigdata.x.zhaobolei.Forth;

import java.util.HashMap;
import java.util.Map;

class StudentGradeManager {
    private Map<String, Integer> studentGrades = new HashMap<>();

    public void addStudent(String name, int grade) {
        studentGrades.put(name, grade);
    }

    public int getGrade(String name) {
        return studentGrades.getOrDefault(name, -1);
    }

    public void removeStudent(String name) {
        studentGrades.remove(name);
    }
}